<%@ page language="java" import="java.util.*, java.text.*,com.zjut.zs.util.tools.*,com.zjut.an.util.tools.*,com.zjut.an.util.system.*,
com.zjut.zs.user.manager.*, com.zjut.zs.user.dao.*,com.zjut.zs.userstatus.manager.*, com.zjut.zs.userstatus.dao.*,
com.zjut.zs.userinfo.manager.*, com.zjut.zs.userinfo.dao.*,com.zjut.zs.file.manager.*, com.zjut.zs.file.dao.*,
com.zjut.zs.cj.manager.*, com.zjut.zs.cj.dao.*,com.zjut.zs.xy.manager.*, com.zjut.zs.xy.dao.*,
com.zjut.zs.zxlb.manager.*, com.zjut.zs.zxlb.dao.*,com.zjut.zs.shhd.manager.*, com.zjut.zs.shhd.dao.*,
com.zjut.zs.exvalue.manager.*, com.zjut.zs.exvalue.dao.*,com.zjut.zs.coname.manager.*, 
com.zjut.zs.school.manager.*, com.zjut.zs.school.dao.*,com.zjut.zs.applyview.dao.*,com.zjut.zs.applyview.manager.*,
com.zjut.an.config.manager.*, com.zjut.an.config.dao.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">  
<meta name="renderer" content="webkit"> 
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../plugins/assets/plugins/jquery-3.5.1.min.js"></script>
<link href="../apply/css/iconfont/iconfont.css" rel="stylesheet" type="text/css" id="cssfile"/>
<link href="../apply/css/iconfont/demo.css" rel="stylesheet" type="text/css" id="cssfile"/>
</head>


<body>
<jsp:include page="zs_uservalidate.jsp" flush="true"/>
<%
if (session.getAttribute("zsUser") == null&&session.getAttribute("admin") == null) {
	out.print("<script>alert('由于长时间未操作，系统已经自动注销，请重新登陆');</script>");
	out.print("<script>top.window.location='main.jsp';</script>");
} else {

AnConfigManager anconfig = (AnConfigManager) SpringContextUtil.getBean("AnConfigManager");
ZsSchoolManager zsManager = (ZsSchoolManager) SpringContextUtil.getBean("ZsSchoolManager");
ZsCoNameManager comanager = (ZsCoNameManager) SpringContextUtil.getBean("ZsCoNameManager");
ZsHTMLCreat html = (ZsHTMLCreat) SpringContextUtil.getBean("ZsHTMLCreat");
ZsApplyViewManager amanager = (ZsApplyViewManager) SpringContextUtil.getBean("ZsApplyViewManager");
ZsUserManager umanager = (ZsUserManager) SpringContextUtil.getBean("ZsUserManager");
ZsUserStatusManager zsmanager = (ZsUserStatusManager) SpringContextUtil.getBean("ZsUserStatusManager");
ZsUserinfoManager ufmanager = (ZsUserinfoManager) SpringContextUtil.getBean("ZsUserinfoManager");
ZsCjManager cjmanager = (ZsCjManager) SpringContextUtil.getBean("ZsCjManager");
ZsXyManager xymanager = (ZsXyManager) SpringContextUtil.getBean("ZsXyManager");
ZsZxlbManager zxlbmanager = (ZsZxlbManager) SpringContextUtil.getBean("ZsZxlbManager");
ZsShhdManager shhdmanager = (ZsShhdManager) SpringContextUtil.getBean("ZsShhdManager");
ZsExValueManager exmanager = (ZsExValueManager) SpringContextUtil.getBean("ZsExValueManager");
ZsFileManager fmanager = (ZsFileManager) SpringContextUtil.getBean("ZsFileManager");
ZsSchool school = new ZsSchool();
school = (ZsSchool)zsManager.getDataByInstance(1,1,null,null,school).getObjects().get(0);
ZsUser user = null;
if(session.getAttribute("admin")!=null && request.getParameter("usId")!=null) {
	String usId = request.getParameter("usId");
	user = umanager.getData(usId);
} else if (session.getAttribute("zsUser")!=null) {
	user = (ZsUser)session.getAttribute("zsUser");	
} 
		
ZsUserStatus userstatus = zsmanager.getDataByUser(user);
boolean f0 = false;
boolean f1 = false;
ZsUserinfo userinfo=new ZsUserinfo();
userinfo.setZsUser(user);
if(ufmanager.getDataByInstance(1,1,null,null,userinfo).getTotal()>0) {
	f1 = true;
	userinfo = (ZsUserinfo)ufmanager.getDataByInstance(1,1,null,null,userinfo).getObjects().get(0);
	if(null!=userinfo.getInTc()) {
		f0 = true;
	}
}
boolean f2 = false;
ZsCj cj=new ZsCj();
cj.setZsUser(user);
if(cjmanager.getDataByInstance(1,1,null,null,cj).getTotal()>0) {
	f2 = true;
}
boolean f3 = false;
ZsXy xy=new ZsXy();
xy.setZsUser(user);
if(xymanager.getDataByInstance(1,1,null,null,xy).getTotal()>0) {
	f3 = true;
}
boolean f4 = false;
ZsZxlb zxlb=new ZsZxlb();
zxlb.setZsUser(user);
if(zxlbmanager.getDataByInstance(1,1,null,null,zxlb).getTotal()>0) {
	f4 = true;
}
boolean f5 = false;
ZsShhd shhd=new ZsShhd();
shhd.setZsUser(user);
if(shhdmanager.getDataByInstance(1,1,null,null,shhd).getTotal()>0) {
	f5 = true;
}
boolean f6 = false;
ZsExValue exvalue=new ZsExValue();
exvalue.setZsUser(user);
if(exmanager.getDataByInstance(1,1,null,null,exvalue).getTotal()>0) {
	f6 = true;
}
boolean f7 = false;
if(Status.SENDSTATUS_YES.getStatus().equals(userstatus.getSendStatus())) {
	f7 = true;
}
boolean f8 = false;
ZsFile file=new ZsFile();
file.setZsUser(user);
if(fmanager.getDataByInstance(1,1,null,null,file).getTotal()>0) {
	f8 = true;
}
boolean f9 = false;
if(!Status.CHECKSTATUS_NULL.getStatus().equals(userstatus.getCheckStatus())) {
	f9 = true;
}
boolean f10 = false;
if(Status.CHECKSTATUS_YES.getStatus().equals(userstatus.getCheckStatus()) && null!=userstatus.getExId() && null!=userstatus.getTestNo()) {
	f10 = true;
}
boolean f11 = false;
if(Status.PAYSTATUS_YES.getStatus().equals(userstatus.getPayStatus())) {
	f11 = true;
}
boolean f12 = false;
if(Status.CHECKSTATUS_YES.getStatus().equals(userstatus.getCheckStatus()) && Status.PAYSTATUS_YES.getStatus().equals(userstatus.getPayStatus())) {
	f12 = true;
}
boolean f13 = false;
if(Status.PASSSTATUS_YES.getStatus().equals(userstatus.getPayStatus()) || Status.PASSSTATUS_NO.getStatus().equals(userstatus.getPayStatus())) {
	f13 = true;
}
 %>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="index.jsp">首页</a></li>
    <li><a href="#">报考流程</a></li>
    </ul>
    </div>
    
    <div class="mainindex">
    
    
    <ul class="steplist">
    
    <li><p>账号注册</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <li><p>填写考生信息</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>    
    <%if(Status.ON.getStatus().equals(school.getScExvalueActive())){ %>
    <li><p>填写报考信息</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <%} %>
    <%if(Status.ON.getStatus().equals(school.getScCjActive())){ %>
    <li><p>填写高中成绩</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <%} %>
    <li><p>填写选考/学考</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <%if(Status.ON.getStatus().equals(school.getScZxlbActive())){ %>
    <li><p>填写专项类别获奖</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <%} %>
    <%if(Status.ON.getStatus().equals(school.getScShhdActive())){ %>
    <li><p>填写社会活动情况</p></li> 
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <%} %>
    <%if(Status.ON.getStatus().equals(school.getScGrcsActive())){ %>
    <li><p>填写个人陈述</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <%} %>
    <!-- <li><p><a href="zs_appprint.jsp?print=do">确认申请表</a></p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li> -->  
    <li><p>提交报考申请</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>  
    <li><p>打印申请表并盖章</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <%if(Status.ON.getStatus().equals(school.getScFilesendActive())){ %>
    <li><p>申请材料上传</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <%} %>           
    <%if(Status.ON.getStatus().equals(school.getScEmsActive())){ %>
    <li><p>申请材料EMS邮寄</p></li>
    <li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
    <%} %>    
	<li><p>学校初审:<%=userstatus.getCheckStatus() %></p></li> 
	<li class="arrow"><i class="icon iconfont">&#xe613;</i></li> 
	<li><p>缴纳报名费</p></li>
	<li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
	<li><p><%=anconfig.getSingleConfigInfoByName("准考证名称") %></p></li>
	<li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
	<li><p>参加学校综合测试</p></li>
	<li class="arrow"><i class="icon iconfont">&#xe613;</i></li>
	<li><p>学校公布测试结果</p></li>
    </ul>
    
   

    <%if(Status.SENDSTATUS_NO.getStatus().equals(userstatus.getSendStatus())){ %>
    <div class="welinfo">
    <span><img src="images/d04.png" alt="" /></span>
    <b style="color:#ff0000">你的申请被退回，需要修改重新提交。</b>
    </div>
    <div class="xline"></div>
    <%} %>
    
	<%if(Status.CHECKSTATUS_NO.getStatus().equals(userstatus.getCheckStatus())){ %>
    <div class="welinfo">
    <span><img src="images/d04.png" alt="" /></span>
    <b style="color:#ff0000"><%=anconfig.getSingleConfigInfoByName("初审不过显示") %></b>
    </div>
    <div class="xline"></div>
    <%} else if(Status.CHECKSTATUS_YES.getStatus().equals(userstatus.getCheckStatus())){ %>
    <div class="welinfo">
    <span><img src="images/d04.png" alt="" /></span>
    <b style="color:#ff0000"><%=anconfig.getSingleConfigInfoByName("初审通过显示") %></b>
    </div>
    <div class="xline"></div>
    <%} %>
    
    <%if(Status.ON.getStatus().equals(school.getScSearchActive())){ //如果开启了考试结果查询%>
    <%if(Status.PASSSTATUS_NO.getStatus().equals(userstatus.getPassStatus())){ %>
    <div class="welinfo">
    <span><img src="images/d04.png" alt="" /></span>
    <b style="color:#ff0000"><%=anconfig.getSingleConfigInfoByName("综合测试未通过显示") %></b>
    </div>
    <div class="xline"></div>
    <%} else if (Status.PASSSTATUS_YES.getStatus().equals(userstatus.getPassStatus())){%>
    <div class="welinfo">
    <span><img src="images/d04.png" alt="" /></span>
    <b style="color:#ff0000"><%=anconfig.getSingleConfigInfoByName("综合测试通过显示") %></b>
    </div>
    <div class="xline"></div>
    <%} %>
    <%} %>
    </div>
    
    
<%} %>
</body>

</html>
